package com.zyd.work.logic.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zyd.work.dao.IDayLogDAO;
import com.zyd.work.domain.vo.DayLog;
import com.zyd.work.logic.IDayLogFacade;
@Service("dayLogImpl")
public class DayLogImpl implements IDayLogFacade {
	private IDayLogDAO dayLogDAOImpl;

	@Resource(name = "dayLogDAOImpl")
	public void setWorkLogDAOImpl(IDayLogDAO dayLogDAOImpl) {
		this.dayLogDAOImpl = dayLogDAOImpl;
	}

	@Override
	public void addDayLog(DayLog daylog) {
		dayLogDAOImpl.addDayLog(daylog);
	}

	@Override
	public void updateDayLog(DayLog daylog) {
		dayLogDAOImpl.updateDayLog(daylog);
	}

	@Override
	public void deleteDayLog(String id) {
		dayLogDAOImpl.deleteDayLog(id);
	}

	@Override
	public List<DayLog> getAllList() {
		return dayLogDAOImpl.getAllList();
	}

	@Override
	public List<DayLog> getListByUserid(String userid) {
		return dayLogDAOImpl.getListByUserid(userid);
	}

	@Override
	public DayLog getDayLogById(String id) {
		return dayLogDAOImpl.getDayLogById(id);
	}

	@Override
	public List<DayLog> getListByDate(String date,String userid) {
		return dayLogDAOImpl.getListByDate(date,userid);
	}

	@Override
	public List<DayLog> searchDaylog(String startdate, String enddate,String userid) {
		return dayLogDAOImpl.searchDaylog(startdate, enddate,userid);
	}

}
